<template>
  <div>
    <van-nav-bar
      @click-left="onClickLeft"
      :border="false"
      title="写意见"
      left-arrow
    ></van-nav-bar>

    <van-field
      v-model="message"
      rows="6"
      autosize
      type="textarea"
      placeholder="请告诉我们您遇到的问题或想反馈的意见"
    />
    <div class="bottom">
      <div class="code">
        <img src="/baking_log/qr.jpg" />
        <h3>扫一扫</h3>
      </div>

      <van-button
        block
        style="margin: 0 auto; width: 335px"
        type="warning"
        size="large"
        >发表意见</van-button
      >
    </div>
  </div>
</template>

<script>
export default {
  data() {
    return {
      message: "",
    };
  },
  methods: {
    onClickLeft() {
      return this.$router.go(-1);
    },
  },
};
</script>

<style scoped>
:deep(.van-nav-bar .van-icon) {
  color: #000;
}
:deep(.van-field__control) {
  background-color: #f5f7f9;
  padding: 10px;
}
.bottom {
  background-color: #fff;
  height: calc(100vh - 260px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  padding: 15px;
}
.bottom > .code > img {
  width: 200px;
  height: 200px;
  display: block;
}
.bottom > .code > h3 {
  text-align: center;
  margin: 0;
}
</style>

<style lang="scss" scoped></style>
